//
//  UserData.h
//  TowerDefence
//
//  Created by K3 on 5/29/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RegisterUserScreen.h"
@class iCoreGUIController;

@interface PlayerData : NSObject {
    iCoreGUIController *mainGUIController;
    RegisterUserScreen *registered;
    NSString *playerName;
    int money;
    int life;
    int star;
}

@property (retain, nonatomic) NSString *playerName;
@property (nonatomic) int money;
@property (nonatomic) int life;
@property (nonatomic) int star;

-(id)initUserDataWith:(iCoreGUIController *)_mainGUIController;
-(NSMutableDictionary *)convertDataToDictionary;
-(void)loadDataFromDictionary:(NSMutableDictionary *)_data;
-(void)loadUserName;

@end
